export const homeParams = () => {
    if (process.client) {
        const sessionParams = sessionStorage.getItem('search')
        let queryParams = {}
        if (sessionParams) {
            const params = new URLSearchParams(sessionParams)
            for (const [key, value] of params.entries()) {
                queryParams[key] = value
            }
        }
        return queryParams
    }
}